<div class="main layui-clear">
    <div class="wrap">
        <div class="content">
            <div class="fly-tab fly-tab-index">
                <span>
                    <a href="{:U('index/jie/jie')}">
                        全部
                    </a>
                    <a href="{:U('index/jie/unsolved')}">
                        未结帖
                    </a>
                    <a href="{:U('index/jie/solved')}">
                        已采纳
                    </a>
                    <a href="{:U('index/jie/wonderful')}">
                        精帖
                    </a>
                </span>
                <form action="http://cn.bing.com/search" class="fly-search">
                    <i class="iconfont icon-sousuo">
                    </i>
                    <input class="layui-input" autocomplete="off" placeholder="搜索内容，回车跳转"
                    type="text" name="q">
                </form>
                <a href="{:U('index/jie/add')}" class="layui-btn jie-add">
                    发表新帖
                </a>
            </div>       
             <ul class="fly-panel fly-list fly-list-top">
             <?php foreach ($topData as $k => $v) { ?>
                <li class="fly-list-li">
                    <a href="{:U('index/u/index',array('id'=>$v['uid']))}" class="fly-list-avatar">
                        <img src="__ROOT__<?php echo $v['face'] ?>" alt="贤心">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:U('index/jie/index',array('id'=>$v['id']))}">
                            <?php echo $v['title'] ?>
                        </a>
                        <span class="fly-tip-stick">
                            置顶
                        </span>
                        <?php if ($v['jing']==1) {?>
                            <span class="fly-tip-jing">精品</span>
                           <?php }?>
                            
                    </h2>
                    <p>
                        <span>
                            <a href="{:U('index/user/set',array('id'=>$v['uid']))}">
                                <?php echo $v['nickname'] ?>
                            </a>
                        </span>
                        <span>
                           <?php echo Ctime($v['create_time']) ?>
                        </span>
                        <span>
                            <?php echo $v['name'] ?>
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                &#xe60c;
                            </i>
                            <?php echo $v['answer_num'] ?>
                            <i class="iconfont" title="人气">
                                &#xe60b;
                            </i>
                            <?php echo $v['view_num'] ?>
                        </span>
                    </p>
                </li>
            <?php } ?>
            <?php foreach ($arrData as $k => $v) { ?>
                <li class="fly-list-li">
                    <a href="{:U('index/u/index',array('id'=>$v['uid']))}" class="fly-list-avatar">
                        <img src="__ROOT__<?php echo $v['face'] ?>" alt="贤心">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:U('index/jie/index',array('id'=>$v['id']))}">
                            <?php echo $v['title'] ?>
                        </a>
                        <?php if ($v['jing']==1) {?>
                            <span class="fly-tip-jing">精品</span>
                           <?php }?>
                            
                    </h2>
                    <p>
                        <span>
                            <a href="{:U('index/user/set',array('id'=>$v['uid']))}">
                                <?php echo $v['nickname'] ?>
                            </a>
                        </span>
                        <span>
                           <?php echo Ctime($v['create_time']) ?>
                        </span>
                        <span>
                            <?php echo $v['name'] ?>
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                &#xe60c;
                            </i>
                            <?php echo $v['answer_num'] ?>
                            <i class="iconfont" title="人气">
                                &#xe60b;
                            </i>
                            <?php echo $v['view_num'] ?>
                        </span>
                    </p>
                </li>
            <?php } ?>
            </ul> 

<!--分页按钮的样式-->
            <style type="text/css">

                    .laypage-main{
                        border:0px;
                    }
                    .laypage-main div{
                        border:0px;
                    }
                  .laypage-main .num{
                    margin: 0px 10px;
                    border:1px solid #009E94;
                  }
                   .laypage-main .current{
                    margin: 0px 10px;
                    border:1px solid #009E94;
                    background: #009E94 url() 0 0 no-repeat;
                    color:#fff;
                  }
                    .laypage-main .next,.laypage-main .prev,.laypage-main .end{
                    margin: 0px 10px;
                    border: 1px solid #009E94;
                }
            </style>
            <div style="text-align: center">
                <div class="laypage-main">
                    <?php echo $show; ?>
                </div>
            </div>
        </div>
    </div>
</div>